
FbbDB = {}
FbbDB.KnownBuffs = {}
FbbDB.Config = {}
local frame = CreateFrame("Frame")
frame:RegisterEvent("VARIABLES_LOADED")


function ApplySettings()
if Lambda ~= nil then
FbbDB.Config.FrameHeight = 400
FbbDB.Config.FrameWidth = 35
FbbDB.Config.BuffFrameHeight = 27
FbbDB.Config.BuffFrameWidth = 150
FbbDB.Config.BuffFrameXoffset = 30
FbbDB.Config.IconHeight = 27
FbbDB.Config.IconWidth = 27
FbbDB.Config.Moveable = false
FbbDB.Config.Scale = 0.9
FbbDB.Config.MainPoint = {"TOPLEFT", Minimap, -10, FbbDB.Config.FrameHeight-90}
FbbDB.Config.MainBackdrop = {bgFile = "Interface\\AddOns\\FlupBuffBar\\BuffBackground.tga" }
FbbDB.Config.DebuffColor = {1, 0, 0}
FbbDB.Config.BuffColor = {1, 1, 1}
FbbDB.Config.BuffBackdrop = {bgFile = "Interface\\AddOns\\FlupBuffBar\\BuffButtonBackground.tga"}
FbbDB.Config.Font = "Interface\\AddOns\\LambdaUI\\Generic\\bold.ttf"
FbbDB.Config.FontColor = LambdaUI.TextColors.GlassFont
FbbDB.Config.FontOffsetX1 = 4 
FbbDB.Config.FontOffsetX2 = 4
FbbDB.Config.FontOffsetY1 = 6
FbbDB.Config.FontOffsetY2 = -6
FbbDB.Config.Lambda = 0.7
BuffFrame:Hide()
BuffFrame.Show = function() end
FbbCreate()

else

FbbDB.Config.FrameHeight = 400
FbbDB.Config.FrameWidth = 80
FbbDB.Config.BuffFrameHeight = 20
FbbDB.Config.BuffFrameWidth = 200
FbbDB.Config.BuffFrameXoffset = -120
FbbDB.Config.IconHeight = 20
FbbDB.Config.IconWidth = 20
FbbDB.Config.Moveable = true
FbbDB.Config.Scale = 0.9
FbbDB.Config.MainBackdrop = {bgFile = "Interface\\AddOns\\FlupBuffBar\\BuffBackground.tga" }
FbbDB.Config.MainPoint = {"CENTER", UIParent}
FbbDB.Config.MainBackdropColor = {0, 0, 0}
FbbDB.Config.DebuffColor = {1, 0, 0}
FbbDB.Config.BuffColor = {1, 1, 1}
FbbDB.Config.BuffBackdrop = {bgFile = "Interface\\AddOns\\FlupBuffBar\\BuffButtonBackground.tga"}
FbbDB.Config.Font = "Fonts\\FRIZQT__.TTF"
FbbDB.Config.Fontsize = 12
FbbDB.Config.FontColor = {1,1,1}
FbbDB.Config.FontOffsetX1 = 4 
FbbDB.Config.FontOffsetX2 = 160
FbbDB.Config.FontOffsetY1 = 0
FbbDB.Config.FontOffsetY2 = 0
FbbDB.Config.Lambda =1.0
BuffFrame:Hide()
BuffFrame.Show = function() end
FbbCreate()
end
end

frame:SetScript("OnEvent", function(self) ApplySettings()  end)